package com.mzj.saas.mservice.smartlock.service.huixiangjia;

import cn.hutool.core.date.DateUtil;
import com.mzj.saas.mservice.smartlock.service.huixiangjia.util.AESUtil;

import java.math.BigInteger;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
import java.util.Scanner;

public class test {

    // public static void main(String[] args) {
    //     String s = null;
    //     try {
    //         s = AESUtil.decryptKey("Y0IFV96ntTMVlfElMC6TGU+Rv4rqlE1PFn92VRO1gX5HRbxNFtctvB2j+m/F3nR4/lLI+t44KjF46AznKlFl7Q==", "qp9Rpgp1+GDn8iFpJuvvXQ==");
    //     } catch (Exception e) {
    //         throw new RuntimeException(e);
    //     }
    //     System.out.println("s = " + s);
    // }

    public static void main(String[] args) {
        try {
            String token = "Y0IFV96ntTMVlfElMC6TGU+Rv4rqlE1P3VD8AzJjVktCiVaK9acZ/NVfHcbzuzQx1heGeAA+7IRlVQXm3V/XAQ==";
            String replace = token.replace("\"", "");
            String s = AESUtil.encryptKey(token, "10632477125045953314");
            System.out.println("s = " + s);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }

}
